import { createHashRouter } from 'react-router-dom'
import Login from '@/page/Login'
import Article from '@/page/Year'
import About from '@/page/Month'
import My from '@/page/New'
import NotFound from '@/page/NotFound'
import Layout from '@/page/Layout'
const router = createHashRouter([{
    path: '/',
    element: <Layout></Layout>,
    children: [{
        index: true,
        element: <About></About>
    }, {
        path: 'article',
        element: <Article></Article>
    }, {
        path: '*',
        element: <NotFound></NotFound>
    }]
}, {
    path: 'login',
    element: <Login></Login>
}, {
    path: 'article',
    element: <Article></Article>
}, {
    path: 'my/:id',
    element: <My></My>
}])

export default router